package com.lottery.material.service.portal.article.impl;

import com.lottery.material.dao.article.ArticleChargePricingConfigMapper;
import com.lottery.material.pojo.article.ArticleChargePricingConfig;
import com.lottery.material.service.portal.article.ArticleChargePricingConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:    文章收费定价配置服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-30 10:47
 */
@Service
public class ArticleChargePricingConfigServiceImpl implements ArticleChargePricingConfigService {

    @Autowired
    private ArticleChargePricingConfigMapper articleChargePricingConfigMapper;

    /**
     * description: 根据用户id查询文章收费定价
     * author sunny
     * createDate 2019-04-30 上午 10:48
     * @param userId
     * @return
     */
    @Override
    public ArticleChargePricingConfig findByUserId(String userId) {
        return articleChargePricingConfigMapper.findByUserId(userId);
    }
}
